import request from "@/utils/request";

export function getNormalOrderList(params) {
  return request({
    url: "back/shop/order?type=list",
    method: "get",
    params
  });
}

export function getOrderDetail(params) {
  return request({
    url: "back/shop/order?type=detail",
    method: "get",
    params
  });
}

export function changeOrderPayment(data) {
  return request({
    url: "back/shop/order?type=amend",
    method: "post",
    data
  });
}

export function goodDeliver(data) {
  return request({
    url: "back/shop/order?type=deliver",
    method: "post",
    data
  });
}

export function closeOrder(data) {
  return request({
    url: "back/shop/order?type=close",
    method: "post",
    data
  });
}

export function refundOrder(data) {
  return request({
    url: "back/shop/order?type=refund",
    method: "post",
    data
  });
}

export function remarkOrder(data) {
  return request({
    url: "back/shop/order?type=remark",
    method: "post",
    data
  });
}

export function orderAddRetainage(data) {
  return request({
    url: "back/shop/order?type=addTo",
    method: "post",
    data
  });
}

export function afterSaleReply(data) {
  return request({
    url: "back/shop/order?type=after",
    method: "post",
    data
  });
}
